.page {
    width: 21cm; /* A4宽度 */
    min-height: 29.7cm; /* A4高度 */
    padding: 1cm;
    margin: 1cm auto;
    border: 1px solid #D3D3D3;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

@page {
    size: A4; /* 定义页面为A4尺寸 */
    margin: 0; /* 打印时无边距 */
}

@media print {
    .page {
        margin: 0;
        border: none;
        box-shadow: none;
        page-break-after: always; /* 每页自动分页 */
    }
    .english-word .rule::before, 
    .english-word .rule::after {
        z-index: 1;
        background-color: #000 !important; /* 使用!important */
        height: 2px;
    }
    .english-word .rule::before {
        background-color: #70d692 !important;
    }
    .english-word .rule::after {
        background-color: #e99898 !important;
    }
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* English */
.english .col, .english [class^="col-"] {
    padding: 0;
}
@font-face {
    font-family: 'MyFont';
    src: url(../font/english.ttf);
}
@font-face {
    font-family: 'MyFont2';
    src: url(../font/english2.ttf);
}
.english-word {
    font-family: Arial,PingFang SC,Hiragino Sans GB,STHeiti,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif,noto-fanyi!important;
    margin-bottom: 10px;
}
.english-word .phonetic_symbol {
    height: 20px;
    font-size: 14px;
    color: #808080;
    margin-bottom: 5px;
    padding: 0px;
}
.english-word .rule {
    font-family: 'MyFont2';
    height: 40px;
    line-height: 37px;
    font-size: 29px;
    padding: 0;
    margin-bottom: 5px;
    border-style: solid;
    border-width: 1px 0px;
    border-color: #70d692;
    border-right: 1px;
    border-right-style: dashed;
    border-right-color: #D3D3D3;
    border-left: 1px;
    border-left-style: dashed;
    border-left-color: #D3D3D3;
    position: relative;
    z-index: 1;
}
.english-word .rule::before, .english-word .rule::after {
    content: " ";
    display: inline-block;
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    z-index: 1;
    background-color: #e74c3c;
}
.english-word .rule::before {
    background-color: #70d692;
    top: 33%;
}
.english-word .rule::after {
    background-color: #e99898;
    top: 67%;
}
.english-word .chinese {
    height: 20px;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 语文 */
.word-group {
    display: flex;
    margin-bottom: 15px;
}
.word-group .chinese-character {
    flex: 1;
}
.word-group .chinese-character .pinyin {
    height: 20px;
    font-size: 14px;
    margin-bottom: 5px;
}
.word-group .chinese-character .character {
    height: 40px;
    width: 40px;
    font-size: 30px;
    line-height: 40px;
    border: 1px solid #b1b1b1;
    margin: auto;
    position: relative;
    z-index: 2;
    font-family: "楷体", "KaiTi", serif;
    color: #333333;
}
.word-group .chinese-character .character::before,
.word-group .chinese-character .character::after {
    content: " ";
    display: block;
    position: absolute;
    transition: background-color 0.5s ease;
    z-index: -1;
}
.word-group .chinese-character .character::before {
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
    background: repeating-linear-gradient(90deg, #bfbfbf, #bfbfbf 3px, #ffffff , #ffffff 7px)
}
.word-group .chinese-character .character::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: repeating-linear-gradient(0deg, #bfbfbf, #bfbfbf 3px, #ffffff , #ffffff 7px)
}